package com.atguigu.day31.filter06;

import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.annotation.WebFilter;
import jakarta.servlet.http.HttpFilter;

import java.io.IOException;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/12/10 16:33
 * @注释
 */
@WebFilter("/fs")
public class FilterD extends HttpFilter {
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("FilterD 过滤器执行了");

        chain.doFilter(request, response);

        System.out.println("FilterD 过滤器结束了");

    }
}
